home *** CD-ROM | disk | FTP | other *** search
/ Macromedia Multimedia Showcase 5.1 / Macromedia - Multimedia Showcase 5.1 (Macromedia) (1996).ISO / pc / media / 58110.dir / 00119_Script_119 < prev    next >
Text File  |  1996-03-27  |  2KB  |  86 lines

  1. on startmovie
  2.   initdone
  3. end
  4.  
  5.  
  6. on wait howlong
  7.   delay howlong * 60 
  8. end
  9.  
  10. on adage
  11.   global ylist
  12.   set ylist = list(93,120,162, 190, 219, 247)
  13. end
  14.  
  15. --
  16. --
  17. -- Movie & code by Jason A. Yeaman
  18. -- Macromedia, creative services department
  19. --
  20.  
  21. --
  22. on init
  23.   repeat with j = 20 to 27
  24.     puppetsprite j, true
  25.   end repeat
  26. end init
  27.  
  28. on melrose
  29.   repeat with i = 30 to 38
  30.     if rollover(i) then
  31.       set the visible of sprite (i - 20) to true
  32. --      set the castnum of sprite (i - 10) to (i)
  33.       updatestage
  34.     else 
  35.       set the visible of sprite (i - 20) to false
  36. --      set the castnum of sprite (i - 10) to (i - 10)
  37.     end if
  38.   end repeat
  39. end
  40.  
  41. on initdone
  42.   repeat with j = 1 to 48
  43.     puppetsprite j, false
  44.   end repeat
  45.   repeat with i = 1 to 48
  46.     set the visible of sprite (i) to true
  47.   end repeat
  48.   updatestage
  49.   sound stop 1
  50.   sound stop 2
  51.   puppetsound 0
  52. end initdone
  53.  
  54. on matchsprites moveme, moveto, x, y
  55.   set the loch of sprite moveme to the loch of sprite moveto + x
  56.   set the locv of sprite moveme to the locv of sprite moveto + y 
  57. end
  58.  
  59.  
  60.  
  61. on cnn 
  62.   repeat with i = 28 to 37 
  63.     if rollover(i) then 
  64.       matchsprites 38, i, 74, 13
  65. --      set the loch of sprite 43 to -180
  66.       exit
  67.     end if
  68.   end repeat
  69.   set the loch of sprite 38 to -180
  70. --  repeat with i = 39 to 40
  71. --    if rollover (i) then
  72. --      set the castnum of sprite 43 to the number of cast "white"
  73. --      matchsprites 43, i, 54, 12
  74. --      exit
  75. --    end if 
  76. --  end repeat
  77. --  repeat with i = 41 to 42
  78. --    if rollover (i) then
  79. --      set the castnum of sprite 43 to the number of cast "red"
  80. --      matchsprites 43, i, 61, 12
  81. --      exit
  82. --    end if 
  83. --  end repeat
  84. --  set the loch of sprite 43 to -180  
  85. end
  86.